package com.mmlc.utils;

import android.content.Context;
import android.util.TypedValue;

/**
 * Created by Administrator on 2016/7/18 0018.
 */
public class DimonsUtil {
    public static int dp2px(int dp, Context context) {
        return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp,
                context.getResources().getDisplayMetrics());
    }
}
